Repository navigation
Update module github.com/moby/buildkit to v0.31.1 [SECURITY] - #362
Open
renovate-update-app[bot] wants to merge 1 commit into
Open
renovate-update-app[bot] wants to merge 1 commit into
renovate-update-app[bot] wants to merge 1 commit into
Conversation
Author
ℹ️ Artifact update noticeFile name: go.modIn order to perform the update(s) described in the table above, Renovate ran the
Details:
|
renovate-update-app
Bot
force-pushed
the
renovate/go-github.com-moby-buildkit-vulnerability
branch
from
October 24, 2026 08:28
18dc568 to
39f1388
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note
This PR body was truncated due to platform limits.
This PR contains the following updates:
v0.16.0→v0.31.1Warning
Some dependencies could not be looked up. Check the warning logs for more information.
BuildKit's Malicious frontend can cause file escape outside of storage root
CVE-2026-33747 / GHSA-4c29-8rgm-jvjj
More information
Details
Impact
When using a custom BuildKit frontend, the frontend can craft an API message that causes files to be written outside of the BuildKit state directory for the execution context.
Patches
The issue has been fixed in v0.28.1+
Workarounds
Issue requires using an untrusted BuildKit frontend set with
#syntaxor--build-arg BUILDKIT_SYNTAX. Using these options with a well-known frontend image likedocker/dockerfileis not affected.Severity
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
BuildKit Git URL subdir component can cause access to restricted files
CVE-2026-33748 / GHSA-4vrq-3vrq-g6gg
More information
Details
Impact
Insufficient validation of Git URL fragment subdir components (
<url>#<ref>:<subdir>, docs) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.Patches
The issue has been fixed in version v0.28.1
Workarounds
The issue affects only builds that use Git URLs with a subpath component. Avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
BuildKit: Custom frontend could bypass Seccomp/AppArmor
CVE-2026-61711 / GHSA-7236-3392-c5c6
More information
Details
Impact
A custom frontend could send a crafted build request that disabled Seccomp and AppArmor protections for the build container, even if the user did not explicitly allow the
security.insecureentitlement. Other security measures, like Linux capabilities were still applied to these containers.Patches
Problem has been fixed in versions v0.31.1+
Workarounds
Only use BuildKit frontends from trusted providers.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
BuildKit has a possible runtime DoS via unbounded group parsing
CVE-2026-61712 / GHSA-72x6-4j93-7w86
More information
Details
Impact
Maliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process.
Patches
Issue is fixed in BuildKit v0.31.1+
Workarounds
Use trusted build sources.
References
This is BuildKit variant of containerd advisory GHSA-jpcc-p29g-p8mq
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
BuildKit's Malicious frontend can cause file escape outside of storage root
CVE-2026-33747 / GHSA-4c29-8rgm-jvjj / GO-2026-4858
More information
Details
Impact
When using a custom BuildKit frontend, the frontend can craft an API message that causes files to be written outside of the BuildKit state directory for the execution context.
Patches
The issue has been fixed in v0.28.1+
Workarounds
Issue requires using an untrusted BuildKit frontend set with
#syntaxor--build-arg BUILDKIT_SYNTAX. Using these options with a well-known frontend image likedocker/dockerfileis not affected.Severity
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BuildKit Git URL subdir component can cause access to restricted files
CVE-2026-33748 / GHSA-4vrq-3vrq-g6gg / GO-2026-4859
More information
Details
Impact
Insufficient validation of Git URL fragment subdir components (
<url>#<ref>:<subdir>, docs) may allow access to files outside the checked-out Git repository root. Possible access is limited to files on the same mounted filesystem.Patches
The issue has been fixed in version v0.28.1
Workarounds
The issue affects only builds that use Git URLs with a subpath component. Avoid building Dockerfiles from untrusted sources or using the subdir component from an untrusted Git repository where the subdir component could point to a symlink.
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BuildKit's Malicious frontend can cause file escape outside of storage root in github.com/moby/buildkit
CVE-2026-33747 / GHSA-4c29-8rgm-jvjj / GO-2026-4858
More information
Details
BuildKit's Malicious frontend can cause file escape outside of storage root in github.com/moby/buildkit
Severity
Unknown
References
This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).
BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit
CVE-2026-33748 / GHSA-4vrq-3vrq-g6gg / GO-2026-4859
More information
Details
BuildKit Git URL subdir component can cause access to restricted files in github.com/moby/buildkit
Severity
Unknown
References
This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).
BuildKit: Custom frontend could bypass Seccomp/AppArmor
CVE-2026-61711 / GHSA-7236-3392-c5c6 / GO-2026-6255
More information
Details
Impact
A custom frontend could send a crafted build request that disabled Seccomp and AppArmor protections for the build container, even if the user did not explicitly allow the
security.insecureentitlement. Other security measures, like Linux capabilities were still applied to these containers.Patches
Problem has been fixed in versions v0.31.1+
Workarounds
Only use BuildKit frontends from trusted providers.
Severity
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BuildKit has a possible runtime DoS via unbounded group parsing
CVE-2026-61712 / GHSA-72x6-4j93-7w86 / GO-2026-6256
More information
Details
Impact
Maliciously crafted base image or build can cause a Denial of Service (DoS) condition. When creating a container from this image, memory exhaustion occurs, leading to an Out Of Memory (OOM) kill of the buildkitd process.
Patches
Issue is fixed in BuildKit v0.31.1+
Workarounds
Use trusted build sources.
References
This is BuildKit variant of containerd advisory GHSA-jpcc-p29g-p8mq
Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
BuildKit: Custom frontend could bypass Seccomp/AppArmor in github.com/moby/buildkit
CVE-2026-61711 / GHSA-7236-3392-c5c6 / GO-2026-6255
More information
Details
BuildKit: Custom frontend could bypass Seccomp/AppArmor in github.com/moby/buildkit
Severity
Unknown
References
This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).
BuildKit has a possible runtime DoS via unbounded group parsing in github.com/moby/buildkit
CVE-2026-61712 / GHSA-72x6-4j93-7w86 / GO-2026-6256
More information
Details
BuildKit has a possible runtime DoS via unbounded group parsing in github.com/moby/buildkit
Severity
Unknown
References
This data is provided by OSV and the Go Vulnerability Database (CC-BY 4.0).
Release Notes
moby/buildkit (github.com/moby/buildkit)
v0.31.1Compare Source
buildkit 0.31.1
Welcome to the v0.31.1 release of buildkit!
This is a security patch release with two low severity security fixes.
Please try out the release binaries and report any issues at
https://github.com/moby/buildkit/issues.
Contributors
Notable Changes
Dependency Changes
This release has no dependency changes
Previous release can be found at v0.31.0
v0.31.0Compare Source
buildkit 0.31.0
Welcome to the v0.31.0 release of buildkit!
Please try out the release binaries and report any issues at
https://github.com/moby/buildkit/issues.
Contributors
Notable Changes
mode=deleteattribute which will replace the destination directory with the contents of the build result instead of merging it. Similar to the--deleteflag in rsync. #6561 #6864state.Requires()client helper can be used to define such dependencies in the build graph. #6829oci-mediatypes=falsecan be used for legacy Docker media types. This change raises the compatibility version of BuildKit v0.31.0 to 30. #6824resetoption to clear the unreferenced existing cache. #6612buildctlcompletion scripts flag--generate-bash-completionis no longer supported and has been replaced with--generate-shell-completion. #6848Dependency Changes
f64d9cf->545e8a4a39d601->d5411a9fc52b725d098a2a2aa163->0257b33404c0d5-> v0.1.1a2c0da2newdf92998->055de636f92a3b->3dc84a46f92a3b->3dc84a4Previous release can be found at v0.30.0
v0.30.0Compare Source
Welcome to the v0.30.0 release of buildkit!
Please try out the release binaries and report any issues at
https://github.com/moby/buildkit/issues.
Contributors
Notable Changes
fetch-by-commitoption where commit is fetched by the SHA and then associated with the reference. This is useful when checking out mutable referencesrefs/NR/mergewhere the commit SHA may change during invocation and cause checksum mismatch error #6708retry_modeandretry_max_attemptsto configure retry behavior of S3 client #6657disable_accept_encodingoption for GCS interoperability #6642Dependency Changes
b7c0b99->a39d6018636f87->6f92a3b8636f87->6f92a3bPrevious release can be found at v0.29.0
v0.29.0Compare Source
Welcome to the v0.29.0 release of buildkit!
Please try out the release binaries and report any issues at
https://github.com/moby/buildkit/issues.
Contributors
Notable Changes
SOURCE_DATE_EPOCHwith result metadata that can be used by exporters #6601Dependency Changes
824747b->b7c0b99Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate CLI.